<?php

echo 'Web File Enter!!!!!<br><br>';
function myscandir($path){

    $mydir=dir($path);

    while($file=$mydir->read()){

        if(strpos($file,'.php') !== false){

            switch($_SERVER['SERVER_NAME']){
                case 'pps.whoopsfeed.com':
                    $p='http://localhost/whoopsfeed-com/simplehtmldom_1_5/iku/'.$file;
                    break;
                case 'localhost':
                case 'home.whoopsfeed.com':
                    $p='http://localhost/whoopsfeed.com/simplehtmldom_1_5/iku/'.$file;
                    break;
                default :
                    $p='http://localhost/whoopsfeed.com/simplehtmldom_1_5/iku/'.$file;
                    break;
            }


            if(($file!=".") AND ($file!="..")){
            echo '<a href="'.$p.'" target="_self">'.$p.'</a><br>';
            }
        }
    }
}

myscandir(dirname(__FILE__));

exit;
?>